partial class VECCPX_LENGTH_MIXIN{


Flattened version is here

Descendants
VECCPXD VECCPX



Public


Features
angle_with(arg:SAME):CT
bounded_distance_to_squared(arg:SAME,sbnd:CT):CT
cosine_angle_with(arg:SAME):CT
**** MBK: We need to figure out something intelligent here. I'm just going to use cos theta = sum(i)
__1/2(a[i]*b[i].conjugate_+_a[i].conjugate*b[i])_/_|a||b|
= Re (a[i]*b[i].conj) a.re*b.re - a.im*b.im;
_
I don't know if this makes sense. Will somebody who cares about complex vectors let the Sather group know what The Right Thing is?
distance_to(arg:SAME):CT
distance_to_squared(arg:SAME):CT
**** we could implement in terms of other functions but I will hand-write for speed.
dot(arg:SAME):ET
inplace_normalized
length:CT
length_one:CT
length_squared:CT
length_zero:CT

Iters


Private

element_one:ET
element_zero:ET

The Sather Home Page